//
//  HJAppointmentRequest.m
//  Keping
//
//  Created by apple on 2017/11/15.
//  Copyright © 2017年 柯平. All rights reserved.
//

#import "HJAppointmentRequest.h"

@implementation HJAppointmentRequest

-(NSString *)requestUrl
{
    return kInviteEntityItemsGetURL;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodGET;
}

-(NSDictionary<NSString *,NSString *> *)requestHeaderFieldValueDictionary
{
    return @{@"Cookie":[KAppConfig sharedConfig].sessionId?:@""};
}

- (id)requestArgument {
    return self.params;
}

@end

@implementation HJAppoInviteEntitysRequest

-(NSString *)requestUrl
{
    return kInviteEntityGetURL;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodGET;
}

- (id)requestArgument {
    return self.params;
}

-(NSDictionary<NSString *,NSString *> *)requestHeaderFieldValueDictionary
{
    return @{@"Cookie":[KAppConfig sharedConfig].sessionId?:@""};
}
@end

@implementation HJAppoInviteGuestRequest {
    NSString *_requestUrl;
}

- (instancetype)initWithGuestID:(NSString *)guest {
    self = [super init];
    if (self) {
        _requestUrl = [kInviteGuestStatuURL stringByReplacingOccurrencesOfString:@"{key}" withString:guest];
    }
    return self;
}

-(NSString *)requestUrl
{
    return _requestUrl;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodPOST;
}

- (id)requestArgument {
    return self.params;
}

-(NSDictionary<NSString *,NSString *> *)requestHeaderFieldValueDictionary
{
    return @{@"Cookie":[KAppConfig sharedConfig].sessionId?:@""};
}
@end


@implementation HJAppoInvitevisitEntitysDetailRequest {
    NSString *_requestUrl;
}

- (instancetype)initWithVisitEntitysID:(NSString *)visit {
    self = [super init];
    if (self) {
        _requestUrl = [kVisitEntitysDetailURL stringByReplacingOccurrencesOfString:@"{key}" withString:visit];
    }
    return self;
}

-(NSString *)requestUrl
{
    return _requestUrl;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodGET;
}

-(NSDictionary<NSString *,NSString *> *)requestHeaderFieldValueDictionary
{
    return @{@"Cookie":[KAppConfig sharedConfig].sessionId?:@""};
}
@end


@implementation HJAppoinviteInviteEntityItemsDetailRequest {
    NSString *_requestUrl;
}

- (instancetype)initWithInviteEntityItemsID:(NSString *)invite {
    self = [super init];
    if (self) {
        _requestUrl = [kInviteEntityItemsDetailURL stringByReplacingOccurrencesOfString:@"{key}" withString:invite];
    }
    return self;
}

-(NSString *)requestUrl
{
    return _requestUrl;
}

-(KRequestMethod)requestMethod
{
    return KRequestMethodGET;
}

-(NSDictionary<NSString *,NSString *> *)requestHeaderFieldValueDictionary
{
    return @{@"Cookie":[KAppConfig sharedConfig].sessionId?:@""};
}
@end


